﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Team4Mock.Entity;
namespace Team4Mock.UserControl.Contact
{
    public partial class ListContact : System.Web.UI.UserControl
    {
        ContactEntity ce = new ContactEntity();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                pnList.Visible = true;
                pnAdd.Visible = false;
                
                gvContact.DataSource = ce.GetData();
                gvContact.DataBind();
            }
        }
        protected void btnCreate_Click1(object sender, EventArgs e)
        {
            pnList.Visible = false; pnAdd.Visible = true;
        }
        protected void btnBack_Click(object sender, EventArgs e)
        {
            pnList.Visible = true; pnAdd.Visible = false;
        }
        protected void btnSelect_Click(object sender, EventArgs e)
        {

        }
    }
}